package cn.domain;
/**
 * 岗位实体
 */

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;


public class Role implements Serializable {
    private Long id;
    private String name;//岗位名称
    private String description;//岗位说明
    private Set<User> user = new HashSet<User>();//岗位中的用户
    private Set<Privilege> privileges;//岗位对应的权限

    public Set<Privilege> getPrivileges() {
        return privileges;
    }

    public void setPrivileges(Set<Privilege> privileges) {
        this.privileges = privileges;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Set<User> getUser() {
        return user;
    }

    public void setUser(Set<User> user) {
        this.user = user;
    }
}
